<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page errorPage="/Error.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%
	String sessionValidation = (String) session
			.getAttribute("sessionValidation");
	if (!(("validSession").equals(sessionValidation))) {
		request.setAttribute("errorMessage", "Session Timeout!");
%>
<jsp:forward page="Login.jsp" />
<%
	}
%>


<!-- BEANS DECLARATION -->
<jsp:useBean id="dbmsUserBean" scope="session"
	class="edu.uic.ids517.model.DbLoginBean"></jsp:useBean>
<jsp:useBean id="dbaseBean" scope="session"
	class="edu.uic.ids517.model.DatabaseAccessBean"></jsp:useBean>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>MainMenu.jsp</title>
</head>
<body background="images/image1.jpg">
	<center>
		<h1>
			<font size="8" color="white">UIC Data Mining Tool</font>
		</h1>
		<br /> <br /> <br /> <a href="mainMenu.jsp"><font size="6"
			color="white">Home</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="dbAccess.jsp"><font size="6" color="white">Database
				Access</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="dataMiningTool.jsp"><font size="6" color="white">Data
				Mining Tool</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="LogOut.jsp"><font size="6" color="white">Logout</font></a> <br />
		<hr>
		<br />
	</center>

	<b><font size="4" color="white">User: <%=dbmsUserBean.getUserName()%></font></b>
	&nbsp;&nbsp;&nbsp;
	<font size="4" color="white">Password: ***** </font>
	<br />
	<font size="4" color="white"> Host:<%=dbmsUserBean.getDbmsHost()%></font>
	&nbsp;&nbsp;&nbsp;
	<font size="4" color="white"> RDBMS:<%=dbmsUserBean.getDbms()%></font>
	&nbsp;&nbsp;&nbsp;
	<font size="4" color="white"> Schema:<%=dbmsUserBean.getDatabaseSchema()%></font>
	<br />
	<font size="4" color="white">SessionID:<%=dbmsUserBean.getSessionId()%></font>

</body>
</html>